package messaage;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class LoggedInMsg extends Message {

    private boolean isUserModerator;

	public LoggedInMsg(boolean _isModerator) {
        this.isUserModerator = _isModerator;
        this.type = "LoggedInMsg";
	}

	@Override
	public String toString() {
		XStream xstream = new XStream(new DomDriver());
		String xml = xstream.toXML(this)+"\0";
		
		return xml;
	}

	public boolean isModerator(){
		return this.isUserModerator;
	}
}
